About 922 letters

About 5 minutes

#super

Description: Obtain the proxy object for the superclass.

def super(): ''' Obtain the proxy object for the superclass :return: The proxy object of the current class's superclass ''' def super(type, obj=None): ''' Obtain the proxy object for the superclass :param type: The class whose superclass proxy is to be obtained :param obj: The object instance :return: The proxy object of the superclass '''

Example:

class Pet: def speak(self): print('Some animal is speaking') class Cat(Pet): def speak(self): print('Meow Meow Meow') def super_speak(self): super().speak() cat = Cat() cat.speak() cat.super_speak() super(Cat, cat).speak()

>>> Establishing WebAssembly Runtime.

>>> Standby.

Powered by Shift.

Created in 6/9/2025

Updated in 6/9/2025